package com.dms.vuemusic.service.impl;

import com.dms.vuemusic.mapper.UserMapper;
import com.dms.vuemusic.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserByName(String username) {
       User u= userMapper.findUserByName(username);
       return u;
    }

    @Override
    public User findUserByNameAndPassword(String username, String password) {
        User u=userMapper.findUserByNameAndPassword(username,password);
        return u;
    }
}
